跳到主要内容

dicts.{dictId}.items.create

添加数据字典项

  • 请求路由: dicts.{dictId}.items.create
  • 交互模型: Request Response
  • 访问限制: 无

请求​

RSocket.rr({
"route" : "dicts.gender.items.create",
"data" : {
"itemId" : "3",
"name" : "未知",
"description" : "性别未知"
}
});

请求参数​

名称类型必须说明
dictIdString是字典标识
itemIdString是字典项标识
nameString是字典项名称
parentIdString否树形字典项的父项itemId,顶级节点为null
fullIdString否对于树形字典项,返回按层级关系组织父级条目的itemId形成fullId
sortWeightNumber否排序权重
descriptionString否说明
disabledBoolean否是否启用
extrasObject否字典项扩展属性
extras.{key}.valueVaries否值
extras.{key}.titleString否显示标题
extras.{key}.sortWeightNumber否排序权重

返回​

已添加的字典项

{
"tenantId" : "meten",
"dictId" : "gender",
"itemId" : "3",
"name" : "未知",
"fullId" : "3",
"description" : "性别未知",
"disabled" : false,
"ts" : "2023-04-08T02:34:25.050374072Z"
}

返回属性​

名称类型说明
dictIdString字典标识
itemIdString字典项标识
nameString字典项名称
parentIdString树形字典项的父项itemId,顶级节点为null
fullIdString对于树形字典项,返回按层级关系组织父级条目的itemId形成fullId
sortWeightNumber排序权重
descriptionString说明
disabledBoolean是否启用
extrasObject字典项扩展属性
extras.{key}.valueVaries值
extras.{key}.titleString显示标题
extras.{key}.sortWeightNumber排序权重
tenantIdString租户ID

下载结果模型定义